package com.itheima01;

import java.net.InetAddress;
import java.net.InterfaceAddress;
import java.net.UnknownHostException;

public class Test01 {
    public static void main(String[] args) throws Exception {
        InetAddress a = InetAddress.getByName("192.168.13.54");

        String hostName = a.getHostName();
        String hostAddress = a.getHostAddress();
        System.out.println(hostAddress+"--------"+hostName);

    }
}
